package com.zzg.springboot.entity;

import java.io.Serializable;

import org.springframework.data.annotation.Id;

public class UserEntity implements Serializable {

	@Id
	private String id;
	private String name;
	private int age;
	// set 和   get 方法
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	// 构造函数
	public UserEntity() {
		super();
		// TODO Auto-generated constructor stub
	}
	public UserEntity(String id, String name, int age) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
	}
	
	
	
	
	
	
}
